package com.glsc.ngateway.common.base.domain.mysql.gateway.system;

import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.Appendix;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

@Entity
@Data
@Table(name = "t_gw_system_doc")
@org.hibernate.annotations.Table(appliesTo = "t_gw_system_doc",comment = "系统项目附件表")
public class SystemDoc implements Serializable {

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", columnDefinition = "int comment '主键'")
    private Integer id;

    @ApiModelProperty(value = "项目ID")
    @Column(name = "op_id", columnDefinition = "int comment '项目ID'")
    private Integer opId;

    @ApiModelProperty(value = "文件")
    @Column(name = "doc_id_list", columnDefinition = "varchar(300) comment '需求报告附件列表'")
    private String docIdList;

    @ApiModelProperty(value = "文件")
    @Transient
    private List<Appendix> docList;

    @ApiModelProperty(value = "pdf文件")
    @Column(name = "pdf_id_list", columnDefinition = "varchar(300) comment '需求报告附件列表'")
    private String pdfIdList;

    @ApiModelProperty(value = "pdf文件")
    @Transient
    private List<Appendix> pdfList;

    @ApiModelProperty(value = "年份")
    @Column(name = "year", columnDefinition = "int(5) comment '年份'")
    private Integer year;

}
